package com.seb.cc.gtou.utils;

import android.content.Context;
import android.text.format.DateFormat;

public class DateTimeFormat {
 private DateTimeFormat(){
	  }
 /**
  * Formats the time based on user's phone date/time preferences.
  * 
  * @param context the context
  * @param time the time in milliseconds
  */
 public static String formatTime(Context context, long time) {
   return android.text.format.DateFormat.getTimeFormat(context).format(time);
       
 }
 /**
  * Formats the date  based on user's phone date/time preferences.
  * 
  * @param context the context
  * @param date the date in milliseconds
  */
 public static String formatDate(Context context, long date) {
   return DateFormat.getDateFormat(context).format(date);
 }

}
